{include file="public/hunanconstr_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/footable/footable.core.css" rel="stylesheet">
<link href="__PUBLIC_ADMIN__js/plugins/fancybox/jquery.fancybox.css" rel="stylesheet">
<style>
#huiedit{
    background-color: #1ab394;
    color: #FFFFFF;
}
#huidel{
    background-color: #ed5565;
    color: #FFFFFF;
}
#hui{
     width: 50px;
        height: 50px;
}

</style>
</head>
<body class="gray-bg">
   <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>建造记录</h5>
                        <div class="ibox-tools">
                            <a href="{:url('admin/Hunanconstr/project_list')}" class="btn btn-primary btn-xs">返回列表</a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="row m-b-sm m-t-sm">
                            <div class="col-md-1">
                                <button type="button" id="loading-example-btn" class="btn btn-white btn-sm"  onclick="history.go(0)"><i class="fa fa-refresh"></i> 刷新</button>
                            </div>
                            <div class="col-md-11">
                            <form method="post" action="{:url('admin/Hunanconstr/framed_Data',['id'=>$id])}" >
                                <div class="input-group">
                                    <input placeholder="请输入楼栋号" name="seek" class="input-sm form-control" type="text"> <span class="input-group-btn">
                                        <button type="submit" class="btn btn-sm btn-primary"> 搜索</button> </span>
                                </div>
                            </form>
                            </div>
                        </div>

						<table class="footable  table table-stripped toggle-arrow-tiny" data-page-size="50" data-filter=#filter>
                            <thead>
                                    <tr>
                                        <th width="350">进度描述</th>
                                        <th width="">完成进度</th>
                                        <th width="">楼栋号</th>
                                        <th width="">创建时间</th>
                                        <th width="">操作</th>
                                        <th data-hide="all">图片</td>
                                    </tr>
                                </thead>
                                <tbody>
                                	{foreach name="res" id="vo" key="key"}
                                    <tr class="gradeX">
                                        <td>{$vo.speed_describe}</td>
                                        <td>
                                            <small>进度： {$vo.speed}%</small>
                                            <div class="progress progress-mini">
                                                <div style="width: {$vo.speed}%;" class="progress-bar"></div>
                                            </div>
                                        </td>
                                        <td>{$vo.ban_number}</td>
                                        <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                                        <td>
                                            <a href="{:url('admin/Hunanconstr/framedData_Edit',['id'=>$vo.id,'project_id'=>$vo.item_id])}" id="huiedit" class="btn btn-white btn-sm">编辑 </a>
                                            <a onClick="return confirm('确定删除?');" href="{:url('admin/Hunanconstr/framedData_Del',['id'=>$vo.id])}" id="huidel" class="btn btn-white btn-sm">删除 </a>
                                        </td>
                                        <td>
                                            <?php $image = json_decode($vo['image'],true); ?>
                                            <div class="ibox-content">
                                            {foreach name="image" id="v"}
                                                <a class="fancybox" href="__IMG_UP__{$v}" title="">
                                                    <img alt="image" class="img"  src="/{$v}" style="width:100px">
                                                </a>
                                            {/foreach}
                                            </div>  
                                        </td>
                                    </tr>  
                                    {/foreach}  
                                </tbody>
                                <tfoot hidden="hidden">
                                    <tr>
                                        <td colspan="5">
                                            <ul class="pagination pull-right"></ul>
                                        </td>
                                    </tr>
                                </tfoot>   
                        </table>
                        <div class="item-page" style="padding-left:600px;">
                            {$page}
						</div> 
                    </div>
                </div>
            </div>
        </div>
    </div>
        
    {include file="public/hunanconstr_footer" /}
	<script src="__PUBLIC_ADMIN__js/plugins/footable/footable.all.min.js"></script>
    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
    
    <!-- Fancy box -->
    <script src="__PUBLIC_ADMIN__js/plugins/fancybox/jquery.fancybox.js"></script>   
    <script>
        $(document).ready(function () {
            $('.fancybox').fancybox({
                openEffect: 'none',
                closeEffect: 'none'
            });
        });
    </script>     

    <script>
        $(document).ready(function() {
            $('.footable').footable();
            $('.footable2').footable();
			
            $('.refresh').click(function(){
            	window.location.reload();	// 刷新页面
            })
            
          	//iframe窗
          	$('.edit').click(function(){
          		var index = layer.open({
          			type : 2,
					fixed: true,
					scrollbar: false,
					title : '编辑',
					shadeClose : false,
					maxmin : true, //开启最大化最小化按钮
					area : ['893px', '600px'],
					//offset: '100px',
					content : '{:url("admin/admin/edit")}'
          		});
          		layer.full(index);
          	})
		});
	</script>
</body>
</html>
